#include<stdio.h>
int a = 0, b = 0, c = 0;

int main()
{

	scanf_s("%d%d%d", &a, &b, &c);
	if (a < b)
	{
		int temp = a;
		a = b;
		b = temp;

	}
	if (a < c)
	{
		int temp = a;
		a = c;
		c = temp;

	}
	if (b < c)
	{
		int temp = b;
		b = c;
		c = temp;

	}
	printf("%d %d %d", a, b, c);


	return 0;
}
#include<iostream>
#include<vector>
using namespace std;
void Print(vector<int>& v)
{
	for (auto e : v)
	{
		cout << e << " ";
	}
	cout << endl;
}
void SelectSort(vector<int>& v)
{
	int i = 0;
	int j ;
	for (i = 0; i < v.size(); i++)
	{
		int min = v[i];
		int index = i;
		for (j = i + 1; j < v.size(); j++)
		{
			if (v[j] < min)
			{
				min = v[j];
				index = j;
			}
		}
		cout << "每次选择的最小的数是：" << v[index] << "下标为：" << index << endl;
		swap(v[i], v[index]);
		cout << "第" << i << "次排序结果为：";
		Print(v);
	}
	cout << "最终排序结果为：";
	Print(v);
}
int main()
{
	vector<int> v;
	int n, m;
	cin >> m;
	while (m)
	{
		cin >> n;
		v.push_back(n);
		m--;
	}
	SelectSort(v);
	return 0;
}
